import { BundlesConst, CategoryConst, EntityConst, EventConst, FormConst, PathConst } from "../ccc3-framework-core/const/Const";
export class BundlesDefine extends BundlesConst {
    public static fbx = "fbxSub";
    public static png = "pngSub";
    public static material = "materialSub";
    public static particle = "particleSub";
    public static main = "mainSub";
    public static level = "level";
}
export class entityDefine extends EntityConst {
    static readonly mainPlayer: string = "mainPlayer";
    static readonly shopper: string = "human"; // 顾客
    static readonly storeItem: string = "storeItem";//仓库页商品模板
    static readonly boxToolBubble: string = "boxToolBubble";
    static readonly putGoodsBubble: string = "putGoodsBubble";
    static readonly boxLevel: string = "boxLevel";

    static readonly putonshelvesItem: string = "putonshelvesItem"; //上架页商品模板
    static readonly buildShopBubble: string = "buildShopBubble"; //解锁摊位的标记
    static readonly mapItem: string = "mapItem"; //地图模板
    static readonly mapMore: string = "mapMore"; //敬请期待模板
    static readonly mapSubItem: string = "mapSubItem"; //地图子模板
    static readonly autoMapItem: string = "autoMapItem"; //自动赶山地图模板
    static readonly autoItem: string = "autoItem"; //自动赶山任务模板
    static readonly guideFinger: string = "finger"; //带动画的手指
    static readonly customer: string = "customer";
    static readonly buildings: string = "Buildings";
    static readonly customerManager: string = "customerManager";
    static readonly talkItem: string = "talkItem";
    static readonly bargainInfomation: string = "bargainInfomation";//砍价提示
    static readonly pictorialBook: string = "pictorialbook";//砍价提示


    static readonly paymentBar: string = "paymentBar";//角色支付的状态栏
    static readonly money3d: string = "money3d";//支付时掉落的金币
    static readonly money2d: string = "money2d";//捡起金币时金币动画模板
    static readonly animCoinNum: string = "animCoinNum";//捡起金币时金币动画模板
    static readonly msgBubble: string = "msgBubble";//捡起金币时金币动画模板

    static readonly putBoxCard: string = "putBoxCard";//装篓子页面的物品卡片
    static readonly cavernStone: string = "cavernStone";//装篓子页面的物品卡片
    static readonly partItem: string = "partItem";//装篓子页面的物品卡片
}

export class eventDefine extends EventConst {
    
    static readonly STALLS_UPDATED: string = "STALLS_UPDATED";
    static readonly SHOW_DIALOG: string = "SHOW_DIALOG";
    static readonly FATIGUE_NUM_CHANGED: string = "FATIGUE_NUM_CHANGED";

}

export class pathDefine extends PathConst {
    public static formDir = "form/";

}

export class formDefine extends FormConst {
    public static mapForm = "mapForm";
    public static fatigueForm = "fatigueForm";
    public static shareForm = "shareForm";
    public static tooltipForm = "tooltipForm";
    
}
/**
 * 
 *  任务类型
 *  5:收取山货
 *  6:获得指定山货
 */
export enum missionType {
    /**
     * 1:赶山次数
     */
    GO_MOUNTAIN = 1,
    /**
     * 2:卖掉山货个数
     */
    SOLD = 2,
    /**
     * 3:摊位等级
     */
    STALLS_LEVEL = 3,
    /**
     * 4:到达等级
     */
    GAME_LEVEL = 4,
    /**
     * 5:收取任意山货次数
     */
    RECEIVE_FOODS = 5,
    /**
     * 6:收取指定山货次数
     */
    RECEIVE_TARGET = 6,
    /**
     * 7:通关指定关卡
     */
    MAP_TARGET = 7
}
export enum bubbleType {
    /**
     * 闲逛
     */
    SLEEP = 1,
    /**
     * 货架没有空了
     */
    STALL_EMPTY = 2,
    /**
     * 买点货
     */
    TARGET_GOODS = 3,
    /**
     * 感概
     */
    LAMENT = 4,

    /**
     * 新鲜
     */
    FRESH = 5,

    /**
     * 支付结束，卖完了
     */
    PAY_EMPTY = 6,

    /**
     * 女性店主
     */
    SHOP_FEMALE_OWNER = 7,

    /**
     * 男性店主
     */
    SHOP_MALE_OWNER = 8,

    /**
     * 半价出售顾客表达
     */
    HALF = 13,

    /**
    * 双倍出售顾客表达
    */
    DOUBLE = 14,

    /**
     * 取消讲价
     */
    CANCEL = 15
}

export enum guideStep {
    /**
     * 开始游戏
     */
    startGame,
    /**
    * 选择地图
    */
    selectMap,
    /**
    * 点击解锁摊位
    */
    buildClick,
    /**
    * 确认解锁摊位
    */
    buildConfirm,

    /**
     * 点击摊位
     */
    boxClick,

    /**
    * 点击上架
    */
    putClick,
    /**
     * 选择上架商品
     */
    putConfirm,
    /**
     * 点击升级按钮
     */
    upClick,
    /**
     * 升级确认
     */
    upConfirm,
    /**
     * 关闭升级
     */
    upClose,
    /**
    * 收取地上的金币
    */
    receiveCoin,

    //获取物品
    getGoods,
    //割草
    cutGrass,
    //搬石头
    moveStone,
    //挖人参
    digGinseng,
    //挖人参
    findGinseng,
    //摇树
    shakeTree,
    //摇树
    getFruit,
    //发现树
    findTree,
    //移动场景
    moveScene,
    //装篓子
    putBox,


    /**
    * 点击快速定位按钮
    */
    bargainClick,
    /**
     * 点击讲价顾客头顶图标
     */
    bargainInformationClick,

    /**
     * 点击任务条
     */
    missionClick,

    /**
    * 领取任务
    */
    missionConfirm,

    /**
    * 在线任务
    */
    onlineReward,

    /**
    * 上架完成
    */
    putCompleted,
}

export class CategoryDefine extends CategoryConst {
    static readonly FATIGUE = 1000;

}

export const autoTaskCount = 3;